<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link href="static/css/baseStyle.css" rel="stylesheet" type="text/css"/>
    <script src="static/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="static/js/layer/layer.js"></script>
    <script src="static/js/staffTake.js"></script>

</head>
<body>
<div class="businessContainer">
    <div class="container">
        <table class="listTable">
            <thead>
            <tr>
                <th></th>
                <th>业务编号</th>
            </tr>
            </thead>
            <tbody id="tbody">
            </tbody>
        </table>
    </div>
    <div class="operation">
        <button type="button" class="op-btn" onclick="qu()">取 件</button>
        <button type="button" class="op-btn" onclick="returnhome()">返回首页</button>
    </div>


</div>
<script type="text/javascript">
    //返回首页
    function returnhome() {
        clientScript.home();
    }

    // $(document).ready(function () {
    //     var jsonarray=[{"latticeId":"100000000001","latticeNumber":"01","deviceNumber":"1","plateNumber":"1","businessNumber":"00000000001","businessType":"????","latticeLdleStatus":"01","latticeSwithStatus":"00","latticeUpdateTime":"2020-04-05 17:16:33","latticeOperator":"01"},{"latticeId":"100000000002","latticeNumber":"100","deviceNumber":"1","plateNumber":"1","businessNumber":"00000000002","businessType":"????","latticeLdleStatus":"01","latticeSwithStatus":"00","latticeUpdateTime":"2020-04-01 13:35:23","latticeOperator":"01"}];
    //     var item;
    //     var len = jsonarray.length;
    //     for (var i = 0; i < len; i++) {
    //         var row =
    //             "<tr>" +
    //             "<td class='icon_td'><img src='static/img/checkBox_Off.png' class='imgOn'/></td>" +
    //             "<td class='number_td'>" + jsonarray[i].businessNumber + "</td>" + "</tr>";
    //         item += row;
    //     }
    //     $("#tbody").append(item);
    //
    //     $(".imgOn").click(function () {
    //         $(this).attr("src", "static/img/checkBox_On.png");
    //         $(this).attr("class", "imgOff");
    //         console.log(this)
    //         showMessage(this);
    //         var a = n = $(this).parent("td").parent("tr").children("td").eq(1).html();
    //         console.log("a--"+a);
    //         num = a;
    //     });
    //     $(".imgOff").click(function () {
    //         $(this).attr("src", "static/img/checkBox_Off.png");
    //         $(this).attr("class", "imgOn");
    //         showMessage(this);
    //     });
    // })
    // function showMessage(obj) {
    //     //1、将已经点击的图片恢复原状
    //     $(".imgOn").attr("src", "static/img/checkBox_Off.png");
    //     $(".imgOn").attr("class", "imgOff");
    //     //2、获取当前已经点击的元素属性
    //     var nowClass = $(obj).attr("class");
    //     //3、更换当前已经点击的元素属性
    //     $(obj).attr("src", "static/img/checkBox_On.png");
    //     //4、更改 当前的class 属性值
    //     $(obj).attr("class", "imgOn");
    // }
</script>
</body>
</html>
